package com.yunbao.web.servlet;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;

/**
 * Created by louisyuu on 2020/3/12 下午4:47
 */
public class HandlerMethod {

    private Object handler;

    private Method handlerMethod;

    private Map<String, Integer> parameterMapping = new HashMap<>();

    private Pattern uriPattern;


    public Object getHandler() {
        return handler;
    }

    public void setHandler(Object handler) {
        this.handler = handler;
    }

    public Method getHandlerMethod() {
        return handlerMethod;
    }

    public void setHandlerMethod(Method handlerMethod) {
        this.handlerMethod = handlerMethod;
    }

    public Map<String, Integer> getParameterMapping() {
        return parameterMapping;
    }

    public void setParameterMapping(Map<String, Integer> parameterMapping) {
        this.parameterMapping = parameterMapping;
    }

    public Pattern getUriPattern() {
        return uriPattern;
    }

    public void setUriPattern(Pattern uriPattern) {
        this.uriPattern = uriPattern;
    }
}
